package main.java.tmi.delivery.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import main.java.tmi.delivery.service.DeliveryService;
import main.java.tmi.delivery.service.DeliveryVO;

import org.springframework.stereotype.Service;

/**
 * 사용자 로그인 처리하는 서비스 구현 클래스
 *
 * @author min™
 * @since 2011. 07. 24
 *
 */
@Service
public class DeliveryServiceImpl implements	DeliveryService {

	
	@Resource(name = "deliveryDAO")
	protected DeliveryDAO deliveryDAO;

	public List<DeliveryVO> getDeliveryView(Map<String,String> param) throws SQLException {
		
		return deliveryDAO.getDeliveryView(param);
	}	

	public List<DeliveryVO> getDeliveryDetailView(Map<String,String> param) throws SQLException {
		
		return deliveryDAO.getDeliveryDetailView(param);
	}

	@Override
	public boolean modifyDeliveryDetail(Map<String, String> param) throws Exception {
		boolean resultData = true; 
		try{
			deliveryDAO.modifyDeliveryDetail(param);
		}catch(Exception e){
			resultData = false;
		}
		return resultData;
	}

}
